<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" isELIgnored="false" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<div class="modal-header">
    <button type="button" class="close" data-dismiss="modal" aria-label="Close">
        <span aria-hidden="true">&times;</span></button>
    <h4 class="modal-title">权限</h4>
</div>
<div class="modal-body row" >
    <div class=" col-sm-offset-4">
        <ul id="treeDemo1" class="ztree "></ul>
    </div>
</div>
<script>
    $(function () {
        var setting = {
            check: {
                enable: false,
                checkboxType: {"Y": "", "N": ""}
            },
            view: {
                dblClickExpand: false
            },
            data: {
                simpleData: {
                    enable: true
                }
            },
            async: {
                enable: true,
                url: "upms/permission/selectAllPermissionByRoleId",
                otherParam: {"roleId": '${id}'}
            }
        };
        $.fn.zTree.init($("#treeDemo1"), setting);
    });

</script>
